package org.sbbs.base.pager;

import java.util.List;

public interface IPager {
	int DEFAULT_PAGE_SIZE = 20;

	void setList(List resultList);

	List getList();

	void setTotalNumberOfRows(int total);

	int getTotalNumberOfRows();

	int getTotalNumberOfPages();

	void setPageSize(int pageSize);

	/** get page size **/
	int getPageSize();

	void setIndex(int index);

	int getIndex();

	/** get the first record index **/
	int getFirstRecordIndex();

	/** asc or dsc **/
	void setSortDirection(SortOrder sortOrderEnum);

	SortOrder getSortDirection();

	void setSortCriterion(String sortCriterion);

	String getSortCriterion();

	int getPageNumber();

	String getSearchId();

	int getStart();

	int getEnd();

}
